package cn.hp.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateToStringUtils {
	//把date类型转换为String类型
	public static String dateToString(Date date){
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
		String str = sdf.format(date);
		return str;
	}
}
